home *** CD-ROM | disk | FTP | other *** search
- Path: qns2.qns.com!not-for-mail
- From: mjarvis@qns2.qns.com (Michael Jarvis)
- Newsgroups: comp.lang.c
- Subject: Re: Question on argv
- Date: 31 Jan 1996 22:48:04 -0600
- Organization: Questar Network Services
- Message-ID: <4epgm4$6vl@qns2.qns.com>
- References: <4eoq3c$45j@usenet.ucs.indiana.edu>
- X-Newsreader: TIN [version 1.2 PL2]
-
- Raghu R. Gompa (Raghu R. Gompa (gompa@nickel.ucs.indiana.edu)) wrote:
- > I am writing a program in which I want to retrieve the arguments
- > argv[1] ... argv[4]. argv[1] .. argv[3] are strings of characters.
- > I want to use argv[4] as an integer. Can I do that? and how? Thank
- > you for your help in advance. .. Raghu
-
- Try reading up on strtol().
-
- -michael
- --
- Michael Jarvis | Finger for PGP Public key | QNSnet Technical Support
- mjarvis@qns.com | http://www.qns.com/~mjarvis | Questar Network Services
- GC3.1: GCS d s+++: a26 C++++ USLV++++$ P++++ L++ E--- W++ N++ !o K+ W-- !O
- M- !V PS+ PE Y+ PGP+ t+ 5 X R tv b+++ DI+++ D++ G+ e>++ h---(*) r+++ y+++
-